package main

import "fmt"

type Person struct {
	name string
	age  int
}

func main() {
	p1 := newPerson("占三", 13)
	p2 := newPerson("李四", 18)
	fmt.Println(p1.name)
	fmt.Println(p2.name)
}

func newPerson(name string, age int) Person {
	return Person{name: name, age: age}
}

func newPersons(name string, age int) *Person {
	return &Person{name: name, age: age}
}
